package com.yuda.campsite.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yuda.common.core.annotation.Excel;
import com.yuda.common.core.web.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 invitation_code_classification
 *
 * @author wyn
 * @date 2021-09-29
 */
public class InvitationCodeClassification extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer id;

    /** 营地id */
    @Excel(name = "营地id")
    private Integer campsiteId;

    @Excel(name="邀请码名称")
    private String name;

    /** 邀请码的级别 */
    @Excel(name = "邀请码的级别")
    private Integer level;

    /** 被减免的金额 */
    @Excel(name = "被减免的金额")
    private BigDecimal reduction;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCampsiteId() {
        return campsiteId;
    }

    public void setCampsiteId(Integer campsiteId) {
        this.campsiteId = campsiteId;
    }

    public void setLevel(Integer level)
    {
        this.level = level;
    }

    public Integer getLevel()
    {
        return level;
    }
    public void setReduction(BigDecimal reduction)
    {
        this.reduction = reduction;
    }

    public BigDecimal getReduction()
    {
        return reduction;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("campsiteId", getCampsiteId())
            .append("level", getLevel())
            .append("reduction", getReduction())
            .append("createTime", getCreateTime())
            .toString();
    }
}
